package com.study.samsung.Service;

import com.study.samsung.Dao.DetailDao;
import com.study.samsung.Entity.Detail;

import java.math.BigDecimal;
import java.util.List;

public class DetailService {
    DetailDao dao = new DetailDao();

    public List<Detail> selectGoodsxq(Integer sxid){
        return dao.selectGoodSxq(sxid);
    }

    public List<Detail> selectAll(Integer sid){
        return dao.selectAll(sid);
    }

    public Integer changePrice(Integer sxid, Double price){
        return dao.changePirce(sxid,price);
    }

    public Integer delgoodsxq(Integer sxid){
        return dao.delgoodsxq(sxid);
    }

    public Integer insertgoodsxq(Double xprice,Integer yid,Integer nid,Integer sid){
        return dao.insertgoodsxq(xprice,yid,nid,sid);
    }

}
